package com.bc.bcapi.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.math.BigInteger;

import com.bc.bcapi.dao.T_Project_teamMapper;
import com.bc.bcmodel.domain.T_Project_teamModel;

/**
 * @Name T_Project_teamService * @Description  * @Author generation * @Date 2018/11/16 20:20:27 * @Version 1.0
 **/
@Service
public class T_Project_teamService {
    @Resource
    T_Project_teamMapper t_Project_teamMapper;

    /**
     * 保存单条数据     *      * @return
     */
    public int insert(T_Project_teamModel req) {
        return t_Project_teamMapper.insert(req);
    }

    /**
     * 批量增加数据     *      * @return
     */
    public int insertBatch(List<T_Project_teamModel> req) {
        return t_Project_teamMapper.insertBatch(req);
    }

    /**
     * 根据对象属性查找满足条件的第一条数据     *      * @return
     */
    public T_Project_teamModel findByNamedParam(T_Project_teamModel req) {
        return t_Project_teamMapper.findByNamedParam(req);
    }

    /**
     * 根据对象查询所有数据     *      * @return
     */
    public List<T_Project_teamModel> getAllList(T_Project_teamModel req) {
        return t_Project_teamMapper.findByNamedParamList(req);
    }

    /**
     * 根据对象查询所有分页数据     *      * @return
     */
    public PageInfo<T_Project_teamModel> getList(T_Project_teamModel req) {
        List<T_Project_teamModel> list = t_Project_teamMapper.findByNamedParamList(req);
        return new PageInfo<T_Project_teamModel>(list);
    }

    /**
     * 更新指定对象     *      * @return
     */
    public int update(T_Project_teamModel req) {
        return t_Project_teamMapper.update(req);
    }

    /**
     * 删除指定数据     *      * @return
     */
    public int delete(String pid) {
        return t_Project_teamMapper.delete(pid);
    }

    /**
     * 根据条件统计数据量     *      * @return
     */
    public long count(T_Project_teamModel req) {
        return t_Project_teamMapper.count(req);
    }
}